package com.qd.chatui.enity;

/**
 * 作者：Rance on 2016/12/14 14:13
 * 邮箱：rance935@163.com
 */
public class MessageInfo {
    private int msgId = -1;//消息id
    private int msgListId = -1;//消息对应的列表id
    private String fromName = "";//该消息的发送人  名字+@+域名  msglist----toname
    private String content = "";//发送内容
    private String sendTime = "";//发送时间
    private String msgType = "";//消息类型
    private int type = -1;//自己或者别人的消息 from_type
    private int sendState = 0;//发送状态
    private String header = "";//用户头像
    private String msgChatId;//消息本身的ID 两端同步
    private boolean isShowTimeStamp = false;//时间戳是否展示
    private String realName = "";//真实名字
    private String roomName = "";//群真实名字  单聊为空
    private String msgSendFrom = "";//消息发送者的jid

    public MessageInfo() {
    }



    public MessageInfo(int msgId, int msgListId, String msgChatId, String fromName, String content,
                       String sendTime, String msgType, int type, int sendState, String header, String realName) {
        this.msgId = msgId;
        this.msgListId = msgListId;
        this.msgChatId = msgChatId;
        this.fromName = fromName;
        this.content = content;
        this.sendTime = sendTime;
        this.msgType = msgType;
        this.type = type;
        this.sendState = sendState;
        this.header = header;
        this.realName = realName;
    }
    public String getMsgSendFrom() {
        return msgSendFrom;
    }

    public void setMsgSendFrom(String msgSendFrom) {
        this.msgSendFrom = msgSendFrom;
    }
    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }


    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public int getMsgListId() {
        return msgListId;
    }

    public void setMsgListId(int msgListId) {
        this.msgListId = msgListId;
    }

    public boolean isShowTimeStamp() {
        return isShowTimeStamp;
    }

    public void setShowTimeStamp(boolean showTimeStamp) {
        isShowTimeStamp = showTimeStamp;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }


    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public int getSendState() {
        return sendState;
    }

    public void setSendState(int sendState) {
        this.sendState = sendState;
    }


    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }


    public int getMsgId() {
        return msgId;
    }

    public void setMsgId(int msgId) {
        this.msgId = msgId;
    }


    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }


    public String getMsgChatId() {
        return msgChatId;
    }

    public void setMsgChatId(String msgChatId) {
        this.msgChatId = msgChatId;
    }

}
